<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        .father{
            width: 200px;
            height: 200px;
            background: red;
        }
        .son{
            width: 100px;
            height: 100px;
            background: blue;
        }
    </style>
    <script src="../node_modules/jquery/dist/jquery.js"></script>
</head>
<body>
<div class="father">
    <div class="son"></div>
</div>
<a href="http://www.baidu.com">我是百度</a>
<form action="http://www.taobao.com">
    <input type="text">
    <input type="submit">
</form>
<script>
     $(function () {
         /**
          * 什么是事件冒泡?
          * 如何阻止事件冒泡
          * 什么是默认行为
          * 如何组织默认行为
          */
         /**
         $(".son").click(function (ev) {
             alert("son")
             // return false;
             ev.stopPropagation();
         });
         $(".father").click(function () {
             alert("father")
         });*/
         $("a").click(function () {
            alert("注册");
            return false;
         });
     });
</script>
</body>
</html>